<?php
/* 
 * Copyright (c) 2018-2021   All rights reserved.
 *
 * 创建时间：2021-11-22 14:10:09
 *
 * 项目：/levfm  -  $  - BaseUserFormModel.php
 *
 * 作者：{{AUTO GENERATE}}
 */

//此文件使用程序自动生成，下次生成时会覆盖，不建议修改。

namespace modules\levfm\table\form\Form_levfm_forms\_gen;

use Lev;
use lev\base\Modelv;
use lev\base\SubModelv;

!defined('INLEV') && exit('Access Denied LEV');


class BaseForm_levfm_forms extends SubModelv
{

    public static $tableName = '{{%levfm_forms}}';

    public static function safeColumnsGen($columns)
    {
        $allColumns = static::allColumns();
        if (is_array($allColumns)) {
            foreach ($columns as $field => $value) {
                if (!isset($allColumns[$field])) unset($columns[$field]);
            }
        }
        return parent::safeColumnsGen($columns); // TODO: Change the autogenerated stub
    }

    public static function allColumns() {
        return array(
                'id'           => 'Id',

                'name'         => '表单名称',

                'tablename'    => '数据表名',

                'descs'        => '简短描述',

                'totalnum'     => '数据总量',

                'totalitem'    => '字段统计',

                'settings'     => '通用设置',

                'displayorder' => '排序',

                'status'       => '状态',

                'uptime'       => '更新时间',

                'addtime'      => '添加时间',

        );
    }

    public static function inputs($iden = '', $keyfield = '', $classify = null)
    {
        //return parent::inputs($iden, $keyfield, $classify); // TODO: Change the autogenerated stub
        return array(
                'name'                         => array(
                    'moduleidentifier' => 'levfm',
                    'classify'         => 'levfm_forms',
                    'title'            => '表单名称',
                    'placeholder'      => '必填',
                    'inputname'        => 'name',
                    'inputtype'        => 'text',
                    'inputvalue'       => '',
                    'settings'         => '',
                    'displayorder'     => '0',
                    'status'           => '1',
            ),

                'settings___formLists'         => array(
                    'moduleidentifier' => 'levfm',
                    'classify'         => 'levfm_forms',
                    'title'            => '表单显示相关设置',
                    'placeholder'      => '',
                    'inputname'        => 'settings___formLists',
                    'inputtype'        => 'tabletrForm',
                    'inputvalue'       => '',
                    'settings'         => array(
                        'tablesForm' => array(
                            '1' => array(
                                'id'          => 1,
                                'order'       => '1',
                                'title'       => '分页数',
                                'inputname'   => 'pageNum',
                                'inputtype'   => 'number',
                                'width'       => '40',
                                'settings'    => '',
                                'placeholder' => '默认25条，表单列表页，每页显示数量。',
                                'inputvalue'  => '',
                        ),
                            '2' => array(
                                'id'          => 2,
                                'order'       => '2',
                                'title'       => '标题长度',
                                'inputname'   => 'titleLen',
                                'inputtype'   => 'number',
                                'width'       => '50',
                                'settings'    => '',
                                'placeholder' => '默认80',
                                'inputvalue'  => '',
                        ),
                            '3' => array(
                                'id'          => 3,
                                'order'       => '3',
                                'title'       => '显示类型',
                                'inputname'   => 'ShowType',
                                'inputtype'   => 'selectcode',
                                'width'       => '100',
                                'settings'    => 'modules\\levfm\\table\\form\\Form_levfm_forms\\Form_levfm_forms',
                                'placeholder' => '',
                                'inputvalue'  => '',
                        ),
                            '4' => array(
                                'id'          => 4,
                                'order'       => '4',
                                'title'       => '标题前缀',
                                'inputname'   => 'titlePre',
                                'inputtype'   => 'text',
                                'width'       => '',
                                'settings'    => '',
                                'placeholder' => '附加在标题前面',
                                'inputvalue'  => '',
                        ),
                            '5' => array(
                                'id'          => 5,
                                'order'       => '5',
                                'title'       => '标题后缀',
                                'inputname'   => 'titleSuf',
                                'inputtype'   => 'text',
                                'width'       => '',
                                'settings'    => '',
                                'placeholder' => '附加在标题后面',
                                'inputvalue'  => '',
                        ),
                            '6' => array(
                                'id'          => 6,
                                'order'       => '6',
                                'title'       => '表单模板',
                                'inputname'   => 'formTmp',
                                'inputtype'   => 'selectcode',
                                'width'       => '100',
                                'settings'    => 'modules\\levfm\\table\\form\\Form_levfm_forms\\Form_levfm_forms',
                                'placeholder' => '',
                                'inputvalue'  => '',
                        ),
                    ),
                ),
                    'displayorder'     => '0',
                    'status'           => '1',
            ),

                'settings___listShowFields'    => array(
                    'moduleidentifier' => 'levfm',
                    'classify'         => 'levfm_forms',
                    'title'            => '搜索关键词自动追加字段',
                    'placeholder'      => '自动获取字段设置内容追加到关键词字段',
                    'inputname'        => 'settings___listShowFields',
                    'inputtype'        => 'selectscode',
                    'inputvalue'       => '',
                    'settings'         => 'modules\\levfm\\table\\form\\Form_levfm_forms\\Form_levfm_forms',
                    'displayorder'     => '0',
                    'status'           => '1',
            ),

                'descs'                        => array(
                    'moduleidentifier' => 'levfm',
                    'classify'         => 'levfm_forms',
                    'title'            => '表单描述',
                    'placeholder'      => '简明扼要',
                    'inputname'        => 'descs',
                    'inputtype'        => 'textarea',
                    'inputvalue'       => '',
                    'settings'         => '',
                    'displayorder'     => '6',
                    'status'           => '1',
            ),

                'settings___fieldType'         => array(
                    'moduleidentifier' => 'levfm',
                    'classify'         => 'levfm_forms',
                    'title'            => '表单字段分类',
                    'placeholder'      => '合理分类字段，形成多个易表达子表单',
                    'inputname'        => 'settings___fieldType',
                    'inputtype'        => 'tablesForm',
                    'inputvalue'       => '',
                    'settings'         => array(
                        'tablesForm' => array(
                            '8' => array(
                                'id'          => 8,
                                'order'       => '0',
                                'title'       => '分类ID',
                                'inputname'   => 'id',
                                'inputtype'   => 'number',
                                'width'       => '40',
                                'settings'    => '',
                                'placeholder' => '',
                                'inputvalue'  => '',
                        ),
                            '1' => array(
                                'id'          => 1,
                                'order'       => '1',
                                'title'       => '排序',
                                'inputname'   => 'order',
                                'inputtype'   => 'number',
                                'width'       => '40',
                                'settings'    => '',
                                'placeholder' => '',
                                'inputvalue'  => '',
                        ),
                            '5' => array(
                                'id'          => 5,
                                'order'       => '2',
                                'title'       => '开关',
                                'inputname'   => 'status',
                                'inputtype'   => 'radio',
                                'width'       => '40',
                                'settings'    => '',
                                'placeholder' => '',
                                'inputvalue'  => '',
                        ),
                            '2' => array(
                                'id'          => 2,
                                'order'       => '5',
                                'title'       => '分类名称',
                                'inputname'   => 'name',
                                'inputtype'   => 'text',
                                'width'       => '',
                                'settings'    => '',
                                'placeholder' => '',
                                'inputvalue'  => '',
                        ),
                    ),
                ),
                    'displayorder'     => '6',
                    'status'           => '1',
            ),

                'settings___typeSearchs'       => array(
                    'moduleidentifier' => 'levfm',
                    'classify'         => 'levfm_forms',
                    'title'            => '分类搜索字段设置',
                    'placeholder'      => '所选字段实现联合搜索；仅限具有选项的字段类型；如：select类型字段',
                    'inputname'        => 'settings___typeSearchs',
                    'inputtype'        => 'selectscode',
                    'inputvalue'       => '',
                    'settings'         => 'modules\\levfm\\table\\form\\Form_levfm_forms\\Form_levfm_forms',
                    'displayorder'     => '0',
                    'status'           => '3',
            ),

                'settings___srhkeyType'        => array(
                    'moduleidentifier' => 'levfm',
                    'classify'         => 'levfm_forms',
                    'title'            => '搜索关键词类型',
                    'placeholder'      => '',
                    'inputname'        => 'settings___srhkeyType',
                    'inputtype'        => 'selectcode',
                    'inputvalue'       => '',
                    'settings'         => 'modules\\levfm\\table\\form\\Form_levfm_forms\\Form_levfm_forms',
                    'displayorder'     => '0',
                    'status'           => '3',
            ),

                'settings___srh_day'           => array(
                    'moduleidentifier' => 'levfm',
                    'classify'         => 'levfm_forms',
                    'title'            => '日期天数分类搜索（天）',
                    'placeholder'      => '根据用户更新数据日期，仅查询某一天用户的数据',
                    'inputname'        => 'settings___srh_day',
                    'inputtype'        => 'tablesForm',
                    'inputvalue'       => array(
                        '1' => array(
                            'id'     => 1,
                            'order'  => '1',
                            'status' => '1',
                            'day'    => '0',
                            'name'   => '今天',
                            'descs'  => '',
                    ),
                        '2' => array(
                            'id'     => 2,
                            'order'  => '2',
                            'status' => '1',
                            'day'    => '1',
                            'name'   => '昨天',
                            'descs'  => '',
                    ),
                        '3' => array(
                            'id'     => 3,
                            'order'  => '3',
                            'status' => '1',
                            'day'    => '2',
                            'name'   => 'd号',
                            'descs'  => '',
                    ),
                        '4' => array(
                            'id'     => 4,
                            'order'  => '4',
                            'status' => '1',
                            'day'    => '3',
                            'name'   => 'd号',
                            'descs'  => '',
                    ),
                ),
                    'settings'         => array(
                        'tablesForm' => array(
                            '1' => array(
                                'id'          => 1,
                                'order'       => '1',
                                'title'       => 'ID',
                                'inputname'   => 'id',
                                'inputtype'   => 'number',
                                'width'       => '40',
                                'settings'    => '',
                                'placeholder' => '',
                                'inputvalue'  => '',
                        ),
                            '2' => array(
                                'id'          => 2,
                                'order'       => '2',
                                'title'       => '排序',
                                'inputname'   => 'order',
                                'inputtype'   => 'number',
                                'width'       => '40',
                                'settings'    => '',
                                'placeholder' => '',
                                'inputvalue'  => '',
                        ),
                            '3' => array(
                                'id'          => 3,
                                'order'       => '3',
                                'title'       => '开关',
                                'inputname'   => 'status',
                                'inputtype'   => 'radio',
                                'width'       => '40',
                                'settings'    => '',
                                'placeholder' => '',
                                'inputvalue'  => '',
                        ),
                            '4' => array(
                                'id'          => 4,
                                'order'       => '4',
                                'title'       => '第N天',
                                'inputname'   => 'day',
                                'inputtype'   => 'textSelect',
                                'width'       => '100',
                                'settings'    => '0=今天
1=昨天
2=前天
3=第3天',
                                'placeholder' => '搜索第几天的数据',
                                'inputvalue'  => '',
                        ),
                            '5' => array(
                                'id'          => 5,
                                'order'       => '5',
                                'title'       => '搜索名',
                                'inputname'   => 'name',
                                'inputtype'   => 'textSelect',
                                'width'       => '130',
                                'settings'    => 'modules\\levfm\\table\\form\\Form_levfm_forms\\Form_levfm_forms',
                                'placeholder' => '',
                                'inputvalue'  => '',
                        ),
                            '6' => array(
                                'id'          => 6,
                                'order'       => '6',
                                'title'       => '描述',
                                'inputname'   => 'descs',
                                'inputtype'   => 'text',
                                'width'       => '',
                                'settings'    => '',
                                'placeholder' => '',
                                'inputvalue'  => '',
                        ),
                    ),
                ),
                    'displayorder'     => '0',
                    'status'           => '3',
            ),

                'settings___srh_days'          => array(
                    'moduleidentifier' => 'levfm',
                    'classify'         => 'levfm_forms',
                    'title'            => '日期范围分类搜索（天）',
                    'placeholder'      => '根据用户更新数据日期，查询几天内用户的数据',
                    'inputname'        => 'settings___srh_days',
                    'inputtype'        => 'tablesForm',
                    'inputvalue'       => array(
                        '1' => array(
                            'id'     => 1,
                            'order'  => '1',
                            'status' => '1',
                            'days'   => '1',
                            'name'   => 'd号',
                            'descs'  => '',
                    ),
                        '2' => array(
                            'id'     => 2,
                            'order'  => '2',
                            'status' => '1',
                            'days'   => '2',
                            'name'   => 'd号',
                            'descs'  => '',
                    ),
                        '3' => array(
                            'id'     => 3,
                            'order'  => '3',
                            'status' => '1',
                            'days'   => '3',
                            'name'   => 'd号',
                            'descs'  => '',
                    ),
                        '4' => array(
                            'id'     => 4,
                            'order'  => '4',
                            'status' => '1',
                            'days'   => '4',
                            'name'   => 'd号',
                            'descs'  => '',
                    ),
                        '5' => array(
                            'id'     => 5,
                            'order'  => '5',
                            'status' => '1',
                            'days'   => '5',
                            'name'   => 'd号',
                            'descs'  => '',
                    ),
                        '6' => array(
                            'id'     => 6,
                            'order'  => '6',
                            'status' => '1',
                            'days'   => '6',
                            'name'   => 'd号',
                            'descs'  => '',
                    ),
                        '7' => array(
                            'id'     => 7,
                            'order'  => '7',
                            'status' => '1',
                            'days'   => '7',
                            'name'   => 'd号',
                            'descs'  => '',
                    ),
                ),
                    'settings'         => array(
                        'tablesForm' => array(
                            '1' => array(
                                'id'          => 1,
                                'order'       => '1',
                                'title'       => 'ID',
                                'inputname'   => 'id',
                                'inputtype'   => 'number',
                                'width'       => '40',
                                'settings'    => '',
                                'placeholder' => '',
                                'inputvalue'  => '',
                        ),
                            '2' => array(
                                'id'          => 2,
                                'order'       => '2',
                                'title'       => '排序',
                                'inputname'   => 'order',
                                'inputtype'   => 'number',
                                'width'       => '40',
                                'settings'    => '',
                                'placeholder' => '',
                                'inputvalue'  => '',
                        ),
                            '3' => array(
                                'id'          => 3,
                                'order'       => '3',
                                'title'       => '开关',
                                'inputname'   => 'status',
                                'inputtype'   => 'radio',
                                'width'       => '40',
                                'settings'    => '',
                                'placeholder' => '',
                                'inputvalue'  => '',
                        ),
                            '4' => array(
                                'id'          => 4,
                                'order'       => '4',
                                'title'       => '搜索范围',
                                'inputname'   => 'days',
                                'inputtype'   => 'textSelect',
                                'width'       => '100',
                                'settings'    => '1=1天前
2=2天前
3=3天前',
                                'placeholder' => '例：5',
                                'inputvalue'  => '',
                        ),
                            '5' => array(
                                'id'          => 5,
                                'order'       => '5',
                                'title'       => '搜索名',
                                'inputname'   => 'name',
                                'inputtype'   => 'textSelect',
                                'width'       => '130',
                                'settings'    => 'modules\\levfm\\table\\form\\Form_levfm_forms\\Form_levfm_forms',
                                'placeholder' => '',
                                'inputvalue'  => '',
                        ),
                            '6' => array(
                                'id'          => 6,
                                'order'       => '6',
                                'title'       => '描述',
                                'inputname'   => 'descs',
                                'inputtype'   => 'text',
                                'width'       => '',
                                'settings'    => '',
                                'placeholder' => '',
                                'inputvalue'  => '',
                        ),
                    ),
                ),
                    'displayorder'     => '0',
                    'status'           => '3',
            ),

                'settings___login'             => array(
                    'moduleidentifier' => 'levfm',
                    'classify'         => 'levfm_forms',
                    'title'            => '登陆可用',
                    'placeholder'      => '用户必须登陆才可以提交表单',
                    'inputname'        => 'settings___login',
                    'inputtype'        => 'radio',
                    'inputvalue'       => '',
                    'settings'         => '',
                    'displayorder'     => '0',
                    'status'           => '5',
            ),

                'settings___payscore'          => array(
                    'moduleidentifier' => 'levfm',
                    'classify'         => 'levfm_forms',
                    'title'            => '付费提交表单',
                    'placeholder'      => '每次提交表单需要支付对应积分',
                    'inputname'        => 'settings___payscore',
                    'inputtype'        => 'usetypescore',
                    'inputvalue'       => '',
                    'settings'         => '',
                    'displayorder'     => '0',
                    'status'           => '5',
            ),

                'settings___payview'           => array(
                    'moduleidentifier' => 'levfm',
                    'classify'         => 'levfm_forms',
                    'title'            => '付费查看',
                    'placeholder'      => '查看数据需要支付对应积分',
                    'inputname'        => 'settings___payview',
                    'inputtype'        => 'usetypescore',
                    'inputvalue'       => '',
                    'settings'         => '',
                    'displayorder'     => '0',
                    'status'           => '5',
            ),

                'settings___maxnum'            => array(
                    'moduleidentifier' => 'levfm',
                    'classify'         => 'levfm_forms',
                    'title'            => '限制发布',
                    'placeholder'      => '',
                    'inputname'        => 'settings___maxnum',
                    'inputtype'        => 'tabletrForm',
                    'inputvalue'       => '',
                    'settings'         => array(
                        'tablesForm' => array(
                            '14' => array(
                                'id'          => 14,
                                'order'       => '0',
                                'title'       => '禁止编辑',
                                'inputname'   => 'disableEdit',
                                'inputtype'   => 'radio',
                                'width'       => '50',
                                'settings'    => '',
                                'placeholder' => '管理员不限制',
                                'inputvalue'  => '1',
                        ),
                            '15' => array(
                                'id'          => 15,
                                'order'       => '5',
                                'title'       => '仅限管理',
                                'inputname'   => 'isAdmin',
                                'inputtype'   => 'radio',
                                'width'       => '50',
                                'settings'    => '',
                                'placeholder' => '仅管理员可以操作表单，发布、编辑信息等',
                                'inputvalue'  => '1',
                        ),
                            '13' => array(
                                'id'          => 13,
                                'order'       => '8',
                                'title'       => '总发布限',
                                'inputname'   => 'maxs',
                                'inputtype'   => 'number',
                                'width'       => '100',
                                'settings'    => '',
                                'placeholder' => '留空不限，所有用户发布总和',
                                'inputvalue'  => '',
                        ),
                            '1'  => array(
                                'id'          => 1,
                                'order'       => '11',
                                'title'       => '每日发布上限',
                                'inputname'   => 'maxday',
                                'inputtype'   => 'number',
                                'width'       => '100',
                                'settings'    => '',
                                'placeholder' => '留空不限，每个用户每天最多可发数量',
                                'inputvalue'  => '5',
                        ),
                            '2'  => array(
                                'id'          => 2,
                                'order'       => '12',
                                'title'       => '每周发布上限',
                                'inputname'   => 'maxweek',
                                'inputtype'   => 'number',
                                'width'       => '100',
                                'settings'    => '',
                                'placeholder' => '留空不限，每个用户每周最多可发数量',
                                'inputvalue'  => '25',
                        ),
                            '4'  => array(
                                'id'          => 4,
                                'order'       => '14',
                                'title'       => '每人限发上限',
                                'inputname'   => 'maxone',
                                'inputtype'   => 'number',
                                'width'       => '100',
                                'settings'    => '',
                                'placeholder' => '留空不限，达到上限禁止发布',
                                'inputvalue'  => '',
                        ),
                    ),
                ),
                    'displayorder'     => '0',
                    'status'           => '5',
            ),

                'settings___check'             => array(
                    'moduleidentifier' => 'levfm',
                    'classify'         => 'levfm_forms',
                    'title'            => '审核数据',
                    'placeholder'      => '管理员审核通过后才可显示',
                    'inputname'        => 'settings___check',
                    'inputtype'        => 'radio',
                    'inputvalue'       => '',
                    'settings'         => '',
                    'displayorder'     => '0',
                    'status'           => '5',
            ),

                'fields'                       => array(
                    'moduleidentifier' => 'levfm',
                    'classify'         => 'levfm_forms',
                    'title'            => '表单字段设置',
                    'placeholder'      => '',
                    'inputname'        => 'fields',
                    'inputtype'        => 'tablesForm',
                    'inputvalue'       => '',
                    'settings'         => array(
                        'tablesForm' => array(
                            '8' => array(
                                'id'          => 8,
                                'order'       => '0',
                                'title'       => 'ID',
                                'inputname'   => 'id',
                                'inputtype'   => 'number',
                                'width'       => '40',
                                'settings'    => '',
                                'placeholder' => '',
                                'inputvalue'  => '',
                        ),
                            '1' => array(
                                'id'          => 1,
                                'order'       => '1',
                                'title'       => '排序',
                                'inputname'   => 'order',
                                'inputtype'   => 'number',
                                'width'       => '40',
                                'settings'    => '',
                                'placeholder' => '',
                                'inputvalue'  => '',
                        ),
                            '5' => array(
                                'id'          => 5,
                                'order'       => '2',
                                'title'       => '开关',
                                'inputname'   => 'status',
                                'inputtype'   => 'radio',
                                'width'       => '40',
                                'settings'    => '',
                                'placeholder' => '',
                                'inputvalue'  => '',
                        ),
                            '3' => array(
                                'id'          => 3,
                                'order'       => '3',
                                'title'       => '显示类型',
                                'inputname'   => 'ShowType',
                                'inputtype'   => 'select',
                                'width'       => '100',
                                'settings'    => '0=图标
1=文字
2=图标和文字',
                                'placeholder' => '',
                                'inputvalue'  => '',
                        ),
                            '4' => array(
                                'id'          => 4,
                                'order'       => '4',
                                'title'       => '打开方式',
                                'inputname'   => 'target',
                                'inputtype'   => 'selectcode',
                                'width'       => '100',
                                'settings'    => 'lev\\helpers\\SettingsHelper',
                                'placeholder' => '',
                                'inputvalue'  => '',
                        ),
                            '2' => array(
                                'id'          => 2,
                                'order'       => '5',
                                'title'       => '导航名称',
                                'inputname'   => 'name',
                                'inputtype'   => 'text',
                                'width'       => '100',
                                'settings'    => '',
                                'placeholder' => '',
                                'inputvalue'  => '',
                        ),
                            '6' => array(
                                'id'          => 6,
                                'order'       => '6',
                                'title'       => '链接地址',
                                'inputname'   => 'link',
                                'inputtype'   => 'text',
                                'width'       => '',
                                'settings'    => '',
                                'placeholder' => '',
                                'inputvalue'  => '',
                        ),
                            '7' => array(
                                'id'          => 7,
                                'order'       => '7',
                                'title'       => '导航图标',
                                'inputname'   => 'logoupload',
                                'inputtype'   => 'uploadimg',
                                'width'       => '',
                                'settings'    => '',
                                'placeholder' => '#号开头调用icon图标、也可是@别名和url址址',
                                'inputvalue'  => '',
                        ),
                            '9' => array(
                                'id'          => 9,
                                'order'       => '9',
                                'title'       => '按钮颜色',
                                'inputname'   => 'bgcolor',
                                'inputtype'   => 'select',
                                'width'       => '77',
                                'settings'    => 'yellow = 金黄色
red    = 红色
blue   = 蓝色
green  = 绿色
gray   = 灰色
black  = 黑色
white  = 白色',
                                'placeholder' => '',
                                'inputvalue'  => '',
                        ),
                    ),
                ),
                    'displayorder'     => '0',
                    'status'           => '10',
            ),

                'settings___totalitem_repeat'  => array(
                    'moduleidentifier' => 'levfm',
                    'classify'         => 'levfm_forms',
                    'title'            => '允许重复投票',
                    'placeholder'      => '编辑累加，快速点击计数投票
例：5秒点击30次投票成功',
                    'inputname'        => 'settings___totalitem_repeat',
                    'inputtype'        => 'radio',
                    'inputvalue'       => '',
                    'settings'         => '',
                    'displayorder'     => '0',
                    'status'           => '15',
            ),

                'settings___totalitem'         => array(
                    'moduleidentifier' => 'levfm',
                    'classify'         => 'levfm_forms',
                    'title'            => '统计字段项目数量',
                    'placeholder'      => '统计勾选字段，编辑不累加
数字number输入框，直接统计总量。默认统计数+1
如需精确统计，可关闭编辑功能',
                    'inputname'        => 'settings___totalitem',
                    'inputtype'        => 'selectscode',
                    'inputvalue'       => '',
                    'settings'         => 'modules\\levfm\\table\\form\\Form_levfm_forms\\Form_levfm_forms',
                    'displayorder'     => '0',
                    'status'           => '15',
            ),

                'settings___totalitem_tempnum' => array(
                    'moduleidentifier' => 'levfm',
                    'classify'         => 'levfm_forms',
                    'title'            => '展示数据自增基数',
                    'placeholder'      => '展示数据数据随时间增加，避免空数据不雅观
留空不自增，支持小数。默认每小时总量虚增3600',
                    'inputname'        => 'settings___totalitem_tempnum',
                    'inputtype'        => 'number',
                    'inputvalue'       => '',
                    'settings'         => '',
                    'displayorder'     => '0',
                    'status'           => '15',
            ),

                'settings___totalitem_days'    => array(
                    'moduleidentifier' => 'levfm',
                    'classify'         => 'levfm_forms',
                    'title'            => '分别统计近N天',
                    'placeholder'      => '留空仅统计总量。自动统计并保留近N天数据。超出天数数据自动删除',
                    'inputname'        => 'settings___totalitem_days',
                    'inputtype'        => 'number',
                    'inputvalue'       => '',
                    'settings'         => '',
                    'displayorder'     => '0',
                    'status'           => '15',
            ),

                'tablename'                    => array(
                    'moduleidentifier' => 'levfm',
                    'classify'         => 'levfm_forms',
                    'title'            => '数据库创建表名称',
                    'placeholder'      => '如果未创建自动在数据库中创建表
未创建表，使用统一表【levfm_datas】',
                    'inputname'        => 'tablename',
                    'inputtype'        => 'text',
                    'inputvalue'       => '',
                    'settings'         => '',
                    'displayorder'     => '19',
                    'status'           => '20',
            ),

                'settings___dataTables'        => array(
                    'moduleidentifier' => 'levfm',
                    'classify'         => 'levfm_forms',
                    'title'            => '数据分表管理',
                    'placeholder'      => '',
                    'inputname'        => 'settings___dataTables',
                    'inputtype'        => 'selectscode',
                    'inputvalue'       => '',
                    'settings'         => '',
                    'displayorder'     => '20',
                    'status'           => '20',
            ),

        );
    }

    public static function setupDesc()
    {
        //return parent::setupDesc(); // TODO: Change the autogenerated stub
        return array(
                '1'  => '第1步',

                '3'  => '第3步',

                '5'  => '第5步',

                '10' => '第10步',

                '15' => '第15步',

                '20' => '第20步',

        );
    }

    public static function getNextSetup()
    {
        return parent::getNextSetup(); // TODO: Change the autogenerated stub
    }

    public static function inputsSetup()
    {
        return parent::inputsSetup(); // TODO: Change the autogenerated stub
    }

    /**
     * 额外的表单字段，不会存入数据库
     * @return array inputs
     */
    public static function extInputs() {
        return [];
    }

    //eg: <div class="card card-header"></div>
    /**
     * 表单头部htm
     * @return string
     */
    public static function headerHtm() {
        return !Lev::isDeveloper(Lev::$app['iden']) ? '' :
            '<tips class="gray inblk scale8">自定义headerHtm：文件位置：'.__DIR__ . '/Form_levfm_forms.php'.'</tips>';
    }

    /**
     * 表单底部htm
     * <tips class="gray inblk scale8">自定义footerHtm</tips>
     * @return string
     */
    public static function footerHtm() {
        return '';
    }

    /**
     * 表单底部内部htm
     * <tips class="gray inblk scale8">自定义footerFormInnerHtm</tips>
     * @return string
     */
    public static function footerFormInnerHtm() {
        return '';
    }

}